/*
  Copyright 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  KimNgan Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using SES.CMS.DAL;
using SES.CMS.DO;
/// <summary>
/// Summary description for cmsDonHangBL
/// </summary>
namespace SES.CMS.BL 
{
    public class cmsDonHangBL 
    {
    	#region Private Variables
		cmsDonHangDAL objcmsDonHangDAL;
		#endregion
		
        #region Public Constructors
        public cmsDonHangBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objcmsDonHangDAL=new cmsDonHangDAL();
        }
        #endregion       

        #region Public Methods
        public int Insert(cmsDonHangDO objcmsDonHangDO)
        {
            return objcmsDonHangDAL.Insert(objcmsDonHangDO);
        }

        public int Update(cmsDonHangDO objcmsDonHangDO)
        {
             return objcmsDonHangDAL.Update(objcmsDonHangDO);

        }

        public DataTable SelectNonUser()
        {
            return objcmsDonHangDAL.SelectNonUser();
        }

        public int Delete(cmsDonHangDO objcmsDonHangDO)
        {
             return objcmsDonHangDAL.Delete(objcmsDonHangDO);

        }

         public int DeleteAll()
        {
             return objcmsDonHangDAL.DeleteAll();
        }

        public cmsDonHangDO Select(cmsDonHangDO objcmsDonHangDO)
        {
            return objcmsDonHangDAL.Select(objcmsDonHangDO);
        }
        public int DonGioHang_UpdateXuLy(int DonHangID, bool XuLy)
        {
            return objcmsDonHangDAL.DonGioHang_UpdateXuLy(DonHangID, XuLy);
        }
        public int DonGioHang_Delete(int DonHangID)
        {
            return objcmsDonHangDAL.DonGioHang_Delete(DonHangID);
        }
        public ArrayList SelectByGioHangID(Int64 id)
        {
            return objcmsDonHangDAL.SelectByGioHangID(id);
        }
        public DataTable SelectByUserID(int id)
        {
            return objcmsDonHangDAL.SelectByUserID(id);
        }

        public DataTable SelectBySessionID(string id)
        {
            return objcmsDonHangDAL.SelectBySessionID(id);
        }
        public DataTable SelectUser()
        {
            return objcmsDonHangDAL.SelectUser();
        }
        public ArrayList SelectAll1( )
        {
         return objcmsDonHangDAL.SelectAll1();
        }
        
        public DataTable SelectAll( )
        {
         return objcmsDonHangDAL.SelectAll();
        }


     
#endregion          
    
    }

}
